import request from '@/utils/request'

export function deleteUserRecord(id) {
  return request({
    url: '/userRecord/deleteUserRecord',
    method: 'post',
    params: { id: id }
  })
}

export function selectUserRecordByLimit(pageNum, pageSize, name, orderDate, showReviewer) {
  return request({
    url: '/userRecord/selectUserRecordByLimit',
    method: 'get',
    params: {
      pageNum: pageNum,
      pageSize: pageSize,
      name: name,
      orderDate: orderDate,
      showReviewer: showReviewer
    }
  })
}

export function judgeOrder(date) {
  return request({
    url: '/userRecord/judgeOrder',
    method: 'get',
    params: {
      date: date
    }
  })
}
export function getDrinkList() {
  return request({
    url: '/drinks/getDrinkList',
    method: 'get'

  })
}
export function setOrder(yearQuarter, id) {
  return request({
    url: '/userRecord/setOrder',
    method: 'post',
    params: {
      yearQuarter: yearQuarter,
      id: id
    }
  })
}
export function saveOrUpdateOrder(params) {
  return request({
    url: '/userRecord/saveOrUpdateOrder',
    method: 'post',
    data: params
  })
}
